<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>MTB CAT1 Peripheral driver library: Functions</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen_style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><a href="http://www.cypress.com/"><img alt="Logo" src="IFXCYP_one-line.png"/></a></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">MTB CAT1 Peripheral driver library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('group__group__tcpwm__functions__common.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Functions<div class="ingroups"><a class="el" href="group__group__tcpwm.html">TCPWM        (Timer Counter PWM)</a> &raquo; <a class="el" href="group__group__tcpwm__common.html">Common</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">General Description</h2>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:gad05735d2bac0673f2ed1ed5f9be8d142"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__common.html#gad05735d2bac0673f2ed1ed5f9be8d142">Cy_TCPWM_Enable_Multiple</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t counters)</td></tr>
<tr class="memdesc:gad05735d2bac0673f2ed1ed5f9be8d142"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables the counter(s) in the TCPWM block.  <a href="#gad05735d2bac0673f2ed1ed5f9be8d142">More...</a><br /></td></tr>
<tr class="separator:gad05735d2bac0673f2ed1ed5f9be8d142"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6e078155360694264c99b405ae127fd3"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__common.html#ga6e078155360694264c99b405ae127fd3">Cy_TCPWM_Disable_Multiple</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t counters)</td></tr>
<tr class="memdesc:ga6e078155360694264c99b405ae127fd3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disables the counter(s) in the TCPWM block.  <a href="#ga6e078155360694264c99b405ae127fd3">More...</a><br /></td></tr>
<tr class="separator:ga6e078155360694264c99b405ae127fd3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gabeb6819a4ac18f04f943a70c44b2bbb9"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__common.html#gabeb6819a4ac18f04f943a70c44b2bbb9">Cy_TCPWM_TriggerStart</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t counters)</td></tr>
<tr class="memdesc:gabeb6819a4ac18f04f943a70c44b2bbb9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Triggers a software start on the selected TCPWMs.  <a href="#gabeb6819a4ac18f04f943a70c44b2bbb9">More...</a><br /></td></tr>
<tr class="separator:gabeb6819a4ac18f04f943a70c44b2bbb9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8f4ab67e3946d84d77b54e0375eb0e48"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__common.html#ga8f4ab67e3946d84d77b54e0375eb0e48">Cy_TCPWM_TriggerReloadOrIndex</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t counters)</td></tr>
<tr class="memdesc:ga8f4ab67e3946d84d77b54e0375eb0e48"><td class="mdescLeft">&#160;</td><td class="mdescRight">Triggers a software reload event (or index in QuadDec mode).  <a href="#ga8f4ab67e3946d84d77b54e0375eb0e48">More...</a><br /></td></tr>
<tr class="separator:ga8f4ab67e3946d84d77b54e0375eb0e48"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4515b7f271f25914e7e9050cb4055663"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__common.html#ga4515b7f271f25914e7e9050cb4055663">Cy_TCPWM_TriggerStopOrKill</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t counters)</td></tr>
<tr class="memdesc:ga4515b7f271f25914e7e9050cb4055663"><td class="mdescLeft">&#160;</td><td class="mdescRight">Triggers a stop in the Timer Counter mode, or a kill in the PWM mode.  <a href="#ga4515b7f271f25914e7e9050cb4055663">More...</a><br /></td></tr>
<tr class="separator:ga4515b7f271f25914e7e9050cb4055663"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0e247b9e0af1462eb0846775a9445ccf"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__common.html#ga0e247b9e0af1462eb0846775a9445ccf">Cy_TCPWM_TriggerCaptureOrSwap</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t counters)</td></tr>
<tr class="memdesc:ga0e247b9e0af1462eb0846775a9445ccf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Triggers a Capture in the Timer Counter mode, and a Swap in the PWM mode.  <a href="#ga0e247b9e0af1462eb0846775a9445ccf">More...</a><br /></td></tr>
<tr class="separator:ga0e247b9e0af1462eb0846775a9445ccf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga17d3fd3116cb297aeda68ca9de8d144c"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__common.html#ga17d3fd3116cb297aeda68ca9de8d144c">Cy_TCPWM_Enable_Single</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t cntNum)</td></tr>
<tr class="memdesc:ga17d3fd3116cb297aeda68ca9de8d144c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables specified counter.  <a href="#ga17d3fd3116cb297aeda68ca9de8d144c">More...</a><br /></td></tr>
<tr class="separator:ga17d3fd3116cb297aeda68ca9de8d144c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa5da4b3cb1620cbb3fa2e2772358ef74"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__common.html#gaa5da4b3cb1620cbb3fa2e2772358ef74">Cy_TCPWM_Disable_Single</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t cntNum)</td></tr>
<tr class="memdesc:gaa5da4b3cb1620cbb3fa2e2772358ef74"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disable specified counter.  <a href="#gaa5da4b3cb1620cbb3fa2e2772358ef74">More...</a><br /></td></tr>
<tr class="separator:gaa5da4b3cb1620cbb3fa2e2772358ef74"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7a324163e97dfebd080a9bb21a6a38a7"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__common.html#ga7a324163e97dfebd080a9bb21a6a38a7">Cy_TCPWM_GetInterruptStatus</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *base, uint32_t cntNum)</td></tr>
<tr class="memdesc:ga7a324163e97dfebd080a9bb21a6a38a7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns which event triggered the interrupt.  <a href="#ga7a324163e97dfebd080a9bb21a6a38a7">More...</a><br /></td></tr>
<tr class="separator:ga7a324163e97dfebd080a9bb21a6a38a7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0c7a2d667dc983c82327463529f5d283"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__common.html#ga0c7a2d667dc983c82327463529f5d283">Cy_TCPWM_ClearInterrupt</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t cntNum, uint32_t source)</td></tr>
<tr class="memdesc:ga0c7a2d667dc983c82327463529f5d283"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clears Active Interrupt Source.  <a href="#ga0c7a2d667dc983c82327463529f5d283">More...</a><br /></td></tr>
<tr class="separator:ga0c7a2d667dc983c82327463529f5d283"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga567d7ae9e63aed64f0c73e45183a4674"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__common.html#ga567d7ae9e63aed64f0c73e45183a4674">Cy_TCPWM_SetInterrupt</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t cntNum, uint32_t source)</td></tr>
<tr class="memdesc:ga567d7ae9e63aed64f0c73e45183a4674"><td class="mdescLeft">&#160;</td><td class="mdescRight">Triggers an interrupt via a software write.  <a href="#ga567d7ae9e63aed64f0c73e45183a4674">More...</a><br /></td></tr>
<tr class="separator:ga567d7ae9e63aed64f0c73e45183a4674"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga47ec0d6214c01f67774fb97b9c3f0878"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__common.html#ga47ec0d6214c01f67774fb97b9c3f0878">Cy_TCPWM_SetInterruptMask</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t cntNum, uint32_t mask)</td></tr>
<tr class="memdesc:ga47ec0d6214c01f67774fb97b9c3f0878"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets an interrupt mask.  <a href="#ga47ec0d6214c01f67774fb97b9c3f0878">More...</a><br /></td></tr>
<tr class="separator:ga47ec0d6214c01f67774fb97b9c3f0878"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad1e957bf59ad8dbf62fbcee214825098"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__common.html#gad1e957bf59ad8dbf62fbcee214825098">Cy_TCPWM_GetInterruptMask</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *base, uint32_t cntNum)</td></tr>
<tr class="memdesc:gad1e957bf59ad8dbf62fbcee214825098"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the interrupt mask.  <a href="#gad1e957bf59ad8dbf62fbcee214825098">More...</a><br /></td></tr>
<tr class="separator:gad1e957bf59ad8dbf62fbcee214825098"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gabb00d4f53ff5db82aa6f5e5ae0e79f8a"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__common.html#gabb00d4f53ff5db82aa6f5e5ae0e79f8a">Cy_TCPWM_GetInterruptStatusMasked</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *base, uint32_t cntNum)</td></tr>
<tr class="memdesc:gabb00d4f53ff5db82aa6f5e5ae0e79f8a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns which masked interrupt triggered the interrupt.  <a href="#gabb00d4f53ff5db82aa6f5e5ae0e79f8a">More...</a><br /></td></tr>
<tr class="separator:gabb00d4f53ff5db82aa6f5e5ae0e79f8a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaafe86ec440bec9a2c23392f289cc3a8b"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__common.html#gaafe86ec440bec9a2c23392f289cc3a8b">Cy_TCPWM_TriggerStart_Single</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t cntNum)</td></tr>
<tr class="memdesc:gaafe86ec440bec9a2c23392f289cc3a8b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Triggers a software start on the selected TCPWM.  <a href="#gaafe86ec440bec9a2c23392f289cc3a8b">More...</a><br /></td></tr>
<tr class="separator:gaafe86ec440bec9a2c23392f289cc3a8b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga710f6bd4caaeda13df9c2ab91b8d1571"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__common.html#ga710f6bd4caaeda13df9c2ab91b8d1571">Cy_TCPWM_TriggerReloadOrIndex_Single</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t cntNum)</td></tr>
<tr class="memdesc:ga710f6bd4caaeda13df9c2ab91b8d1571"><td class="mdescLeft">&#160;</td><td class="mdescRight">Triggers a software reload event (or index 0 in QuadDec mode) on selected TCPWM.  <a href="#ga710f6bd4caaeda13df9c2ab91b8d1571">More...</a><br /></td></tr>
<tr class="separator:ga710f6bd4caaeda13df9c2ab91b8d1571"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad1459b0ddabf388afe151de57f7cf4d4"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__common.html#gad1459b0ddabf388afe151de57f7cf4d4">Cy_TCPWM_TriggerStopOrKill_Single</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t cntNum)</td></tr>
<tr class="memdesc:gad1459b0ddabf388afe151de57f7cf4d4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Triggers a stop in the Timer Counter mode, or a kill in the PWM mode on selected TCPWM.  <a href="#gad1459b0ddabf388afe151de57f7cf4d4">More...</a><br /></td></tr>
<tr class="separator:gad1459b0ddabf388afe151de57f7cf4d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gadba9d406c3bd2b008aa7bbadcd5f32c2"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__common.html#gadba9d406c3bd2b008aa7bbadcd5f32c2">Cy_TCPWM_TriggerCaptureOrSwap_Single</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t cntNum)</td></tr>
<tr class="memdesc:gadba9d406c3bd2b008aa7bbadcd5f32c2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Triggers a Capture 0 in the Timer Counter mode, and a Swap in the PWM mode on selected TCPWM.  <a href="#gadba9d406c3bd2b008aa7bbadcd5f32c2">More...</a><br /></td></tr>
<tr class="separator:gadba9d406c3bd2b008aa7bbadcd5f32c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8a8b31f18ff10c45b7eacfe9d1c25ddd"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__common.html#ga8a8b31f18ff10c45b7eacfe9d1c25ddd">Cy_TCPWM_TriggerCapture0</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t cntNum)</td></tr>
<tr class="memdesc:ga8a8b31f18ff10c45b7eacfe9d1c25ddd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Triggers a Capture 0 on the selected counter.  <a href="#ga8a8b31f18ff10c45b7eacfe9d1c25ddd">More...</a><br /></td></tr>
<tr class="separator:ga8a8b31f18ff10c45b7eacfe9d1c25ddd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga873ce3820b8532c5d7ab6216dbf33c8a"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__common.html#ga873ce3820b8532c5d7ab6216dbf33c8a">Cy_TCPWM_TriggerCapture1</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t cntNum)</td></tr>
<tr class="memdesc:ga873ce3820b8532c5d7ab6216dbf33c8a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Triggers a Capture 1 in Timer Counter and QuadDec Mode.  <a href="#ga873ce3820b8532c5d7ab6216dbf33c8a">More...</a><br /></td></tr>
<tr class="separator:ga873ce3820b8532c5d7ab6216dbf33c8a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa52ca9fbf1b90376b2291ff899b78e72"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__common.html#gaa52ca9fbf1b90376b2291ff899b78e72">Cy_TCPWM_GetTrigPinLevel</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *base, uint32_t cntNum, <a class="el" href="group__group__tcpwm__enums.html#ga17d594ed5788e1fc2de2eae9982fc9dc">cy_en_tcpwm_trigselect_t</a> triggerSelect)</td></tr>
<tr class="memdesc:gaa52ca9fbf1b90376b2291ff899b78e72"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the current level of the selected input trigger.  <a href="#gaa52ca9fbf1b90376b2291ff899b78e72">More...</a><br /></td></tr>
<tr class="separator:gaa52ca9fbf1b90376b2291ff899b78e72"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad2d48d4af03eafea0c103905249e8254"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__common.html#gad2d48d4af03eafea0c103905249e8254">Cy_TCPWM_InputTriggerSetup</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32 cntNum, <a class="el" href="group__group__tcpwm__enums.html#ga17d594ed5788e1fc2de2eae9982fc9dc">cy_en_tcpwm_trigselect_t</a> triggerSelect, uint32_t edgeSelect, uint32_t triggerSignal)</td></tr>
<tr class="memdesc:gad2d48d4af03eafea0c103905249e8254"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets up a trigger input signal for a specific TCPWM counter.  <a href="#gad2d48d4af03eafea0c103905249e8254">More...</a><br /></td></tr>
<tr class="separator:gad2d48d4af03eafea0c103905249e8254"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1d580c145e6e0a2bcccb3bc4c5e5b0aa"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__common.html#ga1d580c145e6e0a2bcccb3bc4c5e5b0aa">Cy_TCPWM_OutputTriggerSetup</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32 cntNum, <a class="el" href="group__group__tcpwm__enums.html#ga302d5f1c0546c77304bfed7a8abf0cdb">cy_en_tcpwm_output_trigselect_t</a> trigger0event, <a class="el" href="group__group__tcpwm__enums.html#ga302d5f1c0546c77304bfed7a8abf0cdb">cy_en_tcpwm_output_trigselect_t</a> trigger1event)</td></tr>
<tr class="memdesc:ga1d580c145e6e0a2bcccb3bc4c5e5b0aa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets up a trigger output signal for a specific TCPWM counter event.  <a href="#ga1d580c145e6e0a2bcccb3bc4c5e5b0aa">More...</a><br /></td></tr>
<tr class="separator:ga1d580c145e6e0a2bcccb3bc4c5e5b0aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga03bd95ef7188f3da6f51e043e2bbd1ea"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE <a class="el" href="group__group__tcpwm__enums.html#ga236beaba02c8a2a1c4eec981501e7270">cy_en_tcpwm_status_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__common.html#ga03bd95ef7188f3da6f51e043e2bbd1ea">Cy_TCPWM_SetDebugFreeze</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32 cntNum, bool enable)</td></tr>
<tr class="memdesc:ga03bd95ef7188f3da6f51e043e2bbd1ea"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables/disables the Debug Freeze feature for the specified counter.  <a href="#ga03bd95ef7188f3da6f51e043e2bbd1ea">More...</a><br /></td></tr>
<tr class="separator:ga03bd95ef7188f3da6f51e043e2bbd1ea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga950b401d5acbd494be8bb5190d77e9a0"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__common.html#ga950b401d5acbd494be8bb5190d77e9a0">Cy_TCPWM_SetDebugSuspend</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32 cntNum, bool enable)</td></tr>
<tr class="memdesc:ga950b401d5acbd494be8bb5190d77e9a0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables/disables the Debug Suspend feature for the specified counter.  <a href="#ga950b401d5acbd494be8bb5190d77e9a0">More...</a><br /></td></tr>
<tr class="separator:ga950b401d5acbd494be8bb5190d77e9a0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9cce3f9a4b4f0d381565599279a7dd18"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__common.html#ga9cce3f9a4b4f0d381565599279a7dd18">Cy_TCPWM_Block_EnableSwap</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32_t cntNum, bool enable)</td></tr>
<tr class="memdesc:ga9cce3f9a4b4f0d381565599279a7dd18"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables/disables swapping mechanism between CC0 and buffered CC0, CC1 and buffered CC1, PERIOD and buffered PERIOD, DT and buffered DT.  <a href="#ga9cce3f9a4b4f0d381565599279a7dd18">More...</a><br /></td></tr>
<tr class="separator:ga9cce3f9a4b4f0d381565599279a7dd18"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf6fb96fe51a6e4b1edeac970ba113166"><td class="memItemLeft" align="right" valign="top">__STATIC_INLINE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__tcpwm__functions__common.html#gaf6fb96fe51a6e4b1edeac970ba113166">Cy_TCPWM_InputTriggerSetupWithGF</a> (<a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *base, uint32 cntNum, <a class="el" href="group__group__tcpwm__enums.html#ga17d594ed5788e1fc2de2eae9982fc9dc">cy_en_tcpwm_trigselect_t</a> triggerSelect, uint32_t edgeSelect, uint32_t triggerSignal, <a class="el" href="group__group__tcpwm__enums.html#gadbc4d3602412fbbaf92175ef56258029">cy_en_gf_depth_value_t</a> dsvalue)</td></tr>
<tr class="memdesc:gaf6fb96fe51a6e4b1edeac970ba113166"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets up a trigger input signal for a specific TCPWM counter and Glitch filter configuration for that trigger.  <a href="#gaf6fb96fe51a6e4b1edeac970ba113166">More...</a><br /></td></tr>
<tr class="separator:gaf6fb96fe51a6e4b1edeac970ba113166"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="gad05735d2bac0673f2ed1ed5f9be8d142"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gad05735d2bac0673f2ed1ed5f9be8d142">&#9670;&nbsp;</a></span>Cy_TCPWM_Enable_Multiple()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_Enable_Multiple </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>counters</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables the counter(s) in the TCPWM block. </p>
<p>Multiple blocks can be started simultaneously.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">counters</td><td>A bit field representing each counter in the TCPWM block.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is a need to enable counters #1, #5 and #6 in the TCPWM0</span></div><div class="line"><span class="comment">     * block.</span></div><div class="line"><span class="comment">     * Multiple counters will be enabled simultaneously using</span></div><div class="line"><span class="comment">     * MY_TCPWM_CNT_MULT_MASK (multiple bit masks ORed together).</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_CNT_1          (1UL)</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_CNT_5          (5UL)</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_CNT_6          (6UL)</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_CNT_MULT_MASK  (uint32_t)((1UL &lt;&lt; MY_TCPWM_CNT_1) |\</span></div><div class="line"><span class="preprocessor">                                               (1UL &lt;&lt; MY_TCPWM_CNT_5) |\</span></div><div class="line"><span class="preprocessor">                                               (1UL &lt;&lt; MY_TCPWM_CNT_6))</span></div><div class="line"></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__common.html#gad05735d2bac0673f2ed1ed5f9be8d142">Cy_TCPWM_Enable_Multiple</a>(TCPWM0, MY_TCPWM_CNT_MULT_MASK);</div><div class="line"></div><div class="line">    <span class="comment">/* Scenario: These counters are configured to generate signals that have a phase</span></div><div class="line"><span class="comment">     * dependency to each other. These must all be enabled at the same time</span></div><div class="line"><span class="comment">     * to preserve this phase relationship.</span></div><div class="line"><span class="comment">     */</span></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__common.html#gabeb6819a4ac18f04f943a70c44b2bbb9">Cy_TCPWM_TriggerStart</a>(TCPWM0, MY_TCPWM_CNT_MULT_MASK);</div></div><!-- fragment --> </dd></dl>
<dl class="section note"><dt>Note</dt><dd>supported only in TCPWM_ver1 </dd></dl>

</div>
</div>
<a id="ga6e078155360694264c99b405ae127fd3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga6e078155360694264c99b405ae127fd3">&#9670;&nbsp;</a></span>Cy_TCPWM_Disable_Multiple()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_Disable_Multiple </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>counters</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Disables the counter(s) in the TCPWM block. </p>
<p>Multiple TCPWM can be disabled simultaneously.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">counters</td><td>A bit field representing each counter in the TCPWM block.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is a need to disable counters #1, #5 and #6 in the TCPWM0</span></div><div class="line"><span class="comment">     * block.</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_CNT_1          (1UL)</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_CNT_5          (5UL)</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_CNT_6          (6UL)</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_CNT_MULT_MASK  (uint32_t)((1UL &lt;&lt; MY_TCPWM_CNT_1) |\</span></div><div class="line"><span class="preprocessor">                                               (1UL &lt;&lt; MY_TCPWM_CNT_5) |\</span></div><div class="line"><span class="preprocessor">                                               (1UL &lt;&lt; MY_TCPWM_CNT_6))</span></div><div class="line"></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__common.html#ga6e078155360694264c99b405ae127fd3">Cy_TCPWM_Disable_Multiple</a>(TCPWM0, MY_TCPWM_CNT_MULT_MASK);</div></div><!-- fragment --> </dd></dl>
<dl class="section note"><dt>Note</dt><dd>supported only in TCPWM_ver1 </dd></dl>

</div>
</div>
<a id="gabeb6819a4ac18f04f943a70c44b2bbb9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gabeb6819a4ac18f04f943a70c44b2bbb9">&#9670;&nbsp;</a></span>Cy_TCPWM_TriggerStart()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_TriggerStart </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>counters</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Triggers a software start on the selected TCPWMs. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">counters</td><td>A bit field representing each counter in the TCPWM block.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is a need to enable counters #1, #5 and #6 in the TCPWM0</span></div><div class="line"><span class="comment">     * block.</span></div><div class="line"><span class="comment">     * Multiple counters will be enabled simultaneously using</span></div><div class="line"><span class="comment">     * MY_TCPWM_CNT_MULT_MASK (multiple bit masks ORed together).</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_CNT_1          (1UL)</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_CNT_5          (5UL)</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_CNT_6          (6UL)</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_CNT_MULT_MASK  (uint32_t)((1UL &lt;&lt; MY_TCPWM_CNT_1) |\</span></div><div class="line"><span class="preprocessor">                                               (1UL &lt;&lt; MY_TCPWM_CNT_5) |\</span></div><div class="line"><span class="preprocessor">                                               (1UL &lt;&lt; MY_TCPWM_CNT_6))</span></div><div class="line"></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__common.html#gad05735d2bac0673f2ed1ed5f9be8d142">Cy_TCPWM_Enable_Multiple</a>(TCPWM0, MY_TCPWM_CNT_MULT_MASK);</div><div class="line"></div><div class="line">    <span class="comment">/* Scenario: These counters are configured to generate signals that have a phase</span></div><div class="line"><span class="comment">     * dependency to each other. These must all be enabled at the same time</span></div><div class="line"><span class="comment">     * to preserve this phase relationship.</span></div><div class="line"><span class="comment">     */</span></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__common.html#gabeb6819a4ac18f04f943a70c44b2bbb9">Cy_TCPWM_TriggerStart</a>(TCPWM0, MY_TCPWM_CNT_MULT_MASK);</div></div><!-- fragment --> </dd></dl>
<dl class="section note"><dt>Note</dt><dd>supported only in TCPWM_ver1 </dd></dl>

</div>
</div>
<a id="ga8f4ab67e3946d84d77b54e0375eb0e48"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga8f4ab67e3946d84d77b54e0375eb0e48">&#9670;&nbsp;</a></span>Cy_TCPWM_TriggerReloadOrIndex()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_TriggerReloadOrIndex </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>counters</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Triggers a software reload event (or index in QuadDec mode). </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance</td></tr>
    <tr><td class="paramname">counters</td><td>A bit field representing each counter in the TCPWM block.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is a need to trigger a software reload event for</span></div><div class="line"><span class="comment">     * the first (index = 0) counter of the TCPWM0 block.</span></div><div class="line"><span class="comment">     * This causes the reloading of the counter register with the period value.</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_CNT_NUM   (0UL)</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_CNT_MASK  (1UL &lt;&lt; MY_TCPWM_CNT_NUM)</span></div><div class="line"></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__common.html#ga8f4ab67e3946d84d77b54e0375eb0e48">Cy_TCPWM_TriggerReloadOrIndex</a>(TCPWM0, MY_TCPWM_CNT_MASK);</div></div><!-- fragment --> </dd></dl>
<dl class="section note"><dt>Note</dt><dd>supported only in TCPWM_ver1 </dd></dl>

</div>
</div>
<a id="ga4515b7f271f25914e7e9050cb4055663"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga4515b7f271f25914e7e9050cb4055663">&#9670;&nbsp;</a></span>Cy_TCPWM_TriggerStopOrKill()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_TriggerStopOrKill </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>counters</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Triggers a stop in the Timer Counter mode, or a kill in the PWM mode. </p>
<dl class="section note"><dt>Note</dt><dd>The kill trigger behavior for PWM is defined by the <a class="el" href="structcy__stc__tcpwm__pwm__config__t.html#add150f9e27b83cc7549db22934cd4d00">cy_stc_tcpwm_pwm_config_t::killMode</a> field. The pins states after a kill trigger are defined by <a class="el" href="structcy__stc__tcpwm__pwm__config__t.html#a9bf7f3c7133ff0c6e1d51c6b52d05997">cy_stc_tcpwm_pwm_config_t::invertPWMOut</a> and <a class="el" href="structcy__stc__tcpwm__pwm__config__t.html#a3eb0cc962444244b8200dafa2e8e856b">cy_stc_tcpwm_pwm_config_t::invertPWMOutN</a> fields.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">counters</td><td>A bit field representing each counter in the TCPWM block.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is a need to kill 3 PWM signals</span></div><div class="line"><span class="comment">     * (PWM runs in \ref CY_TCPWM_PWM_STOP_ON_KILL mode) at the same time</span></div><div class="line"><span class="comment">     * as they are all used e.g. to drive an RGB LED. So there will be a clean</span></div><div class="line"><span class="comment">     * transition from white light to no light.</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_CNT_1          (1UL)</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_CNT_5          (5UL)</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_CNT_6          (6UL)</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_CNT_MULT_MASK  (uint32_t)((1UL &lt;&lt; MY_TCPWM_CNT_1) |\</span></div><div class="line"><span class="preprocessor">                                               (1UL &lt;&lt; MY_TCPWM_CNT_5) |\</span></div><div class="line"><span class="preprocessor">                                               (1UL &lt;&lt; MY_TCPWM_CNT_6))</span></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__common.html#ga4515b7f271f25914e7e9050cb4055663">Cy_TCPWM_TriggerStopOrKill</a>(TCPWM0, MY_TCPWM_CNT_MULT_MASK);</div><div class="line">    <span class="comment">/* Then continue to operate from the point they have been stopped. */</span></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__common.html#gabeb6819a4ac18f04f943a70c44b2bbb9">Cy_TCPWM_TriggerStart</a>(TCPWM0, MY_TCPWM_CNT_MULT_MASK);</div></div><!-- fragment --> </dd></dl>
<dl class="section note"><dt>Note</dt><dd>supported only in TCPWM_ver1 </dd></dl>

</div>
</div>
<a id="ga0e247b9e0af1462eb0846775a9445ccf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga0e247b9e0af1462eb0846775a9445ccf">&#9670;&nbsp;</a></span>Cy_TCPWM_TriggerCaptureOrSwap()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_TriggerCaptureOrSwap </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>counters</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Triggers a Capture in the Timer Counter mode, and a Swap in the PWM mode. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">counters</td><td>A bit field representing each counter in the TCPWM block.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is a need to trigger software capture events for</span></div><div class="line"><span class="comment">     * the first (index = 0) counter of the TCPWM0 block.</span></div><div class="line"><span class="comment">     * Note: the counter should run in the Capture Mode.</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_CNT_NUM   (0UL)</span></div><div class="line"></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__common.html#gadba9d406c3bd2b008aa7bbadcd5f32c2">Cy_TCPWM_TriggerCaptureOrSwap_Single</a>(TCPWM0, MY_TCPWM_CNT_NUM);</div><div class="line">    <span class="comment">/* after some time */</span></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__common.html#gadba9d406c3bd2b008aa7bbadcd5f32c2">Cy_TCPWM_TriggerCaptureOrSwap_Single</a>(TCPWM0, MY_TCPWM_CNT_NUM);</div><div class="line"></div><div class="line">    <span class="comment">/* Now we can get the latest captured value</span></div><div class="line"><span class="comment">     * (captured during the second call of Cy_TCPWM_TriggerCaptureOrSwap_Single)</span></div><div class="line"><span class="comment">     */</span></div><div class="line">    uint32_t capture = <a class="code" href="group__group__tcpwm__functions__counter.html#ga53321a824ba298d75d8bed089bfb4595">Cy_TCPWM_Counter_GetCapture0Val</a>(TCPWM0, MY_TCPWM_CNT_NUM);</div><div class="line">    <span class="comment">/* Also the previous captured value</span></div><div class="line"><span class="comment">     * (captured during the first call of Cy_TCPWM_TriggerCaptureOrSwap_Single)</span></div><div class="line"><span class="comment">     * is available by the next way</span></div><div class="line"><span class="comment">     */</span></div><div class="line">    uint32_t captureBuf = <a class="code" href="group__group__tcpwm__functions__counter.html#gabc22432c63203412232182d676caa149">Cy_TCPWM_Counter_GetCapture0BufVal</a>(TCPWM0, MY_TCPWM_CNT_NUM);</div></div><!-- fragment --> </dd></dl>
<dl class="section note"><dt>Note</dt><dd>supported only in TCPWM_ver1 </dd></dl>

</div>
</div>
<a id="ga17d3fd3116cb297aeda68ca9de8d144c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga17d3fd3116cb297aeda68ca9de8d144c">&#9670;&nbsp;</a></span>Cy_TCPWM_Enable_Single()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_Enable_Single </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables specified counter. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gaa5da4b3cb1620cbb3fa2e2772358ef74"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa5da4b3cb1620cbb3fa2e2772358ef74">&#9670;&nbsp;</a></span>Cy_TCPWM_Disable_Single()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_Disable_Single </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Disable specified counter. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga7a324163e97dfebd080a9bb21a6a38a7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga7a324163e97dfebd080a9bb21a6a38a7">&#9670;&nbsp;</a></span>Cy_TCPWM_GetInterruptStatus()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_TCPWM_GetInterruptStatus </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns which event triggered the interrupt. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>See <a class="el" href="group__group__tcpwm__interrupt__sources.html">Interrupt Sources</a></dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is a need to check all the pending interrupts of</span></div><div class="line"><span class="comment">     * the first (index = 0) counter of the TCPWM0 block.</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_CNT_NUM   (0UL)</span></div><div class="line"></div><div class="line">    uint32_t interrupts = <a class="code" href="group__group__tcpwm__functions__common.html#ga7a324163e97dfebd080a9bb21a6a38a7">Cy_TCPWM_GetInterruptStatus</a>(TCPWM0, MY_TCPWM_CNT_NUM);</div><div class="line">    <span class="comment">/* Now the &#39;interrupts&#39; contains all the currently pending interrupt masks */</span></div><div class="line">    <span class="keywordflow">if</span>(0UL != (<a class="code" href="group__group__tcpwm__interrupt__sources.html#gab5db2da5edd94851eebb473325dd6324">CY_TCPWM_INT_ON_TC</a> &amp; interrupts))</div><div class="line">    {</div><div class="line">        <span class="comment">/* There is a pending Terminal Count interrupt */</span></div><div class="line">    }</div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga0c7a2d667dc983c82327463529f5d283"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga0c7a2d667dc983c82327463529f5d283">&#9670;&nbsp;</a></span>Cy_TCPWM_ClearInterrupt()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_ClearInterrupt </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>source</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Clears Active Interrupt Source. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
    <tr><td class="paramname">source</td><td>source to clear. See <a class="el" href="group__group__tcpwm__interrupt__sources.html">Interrupt Sources</a></td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: inside the TCPWM interrupt handler for</span></div><div class="line"><span class="comment">     * the first (index = 0) counter of the TCPWM0 block.</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_CNT_NUM   (0UL)</span></div><div class="line"></div><div class="line">    <span class="comment">/* Get all the enabled pending interrupts */</span></div><div class="line">    uint32_t interrupts = <a class="code" href="group__group__tcpwm__functions__common.html#gabb00d4f53ff5db82aa6f5e5ae0e79f8a">Cy_TCPWM_GetInterruptStatusMasked</a>(TCPWM0, MY_TCPWM_CNT_NUM);</div><div class="line"></div><div class="line">    <span class="keywordflow">if</span> (0UL != (<a class="code" href="group__group__tcpwm__interrupt__sources.html#gab5db2da5edd94851eebb473325dd6324">CY_TCPWM_INT_ON_TC</a> &amp; interrupts))</div><div class="line">    {</div><div class="line">        <span class="comment">/* Handle the Terminal Count event */</span></div><div class="line">    }</div><div class="line"></div><div class="line">    <span class="keywordflow">if</span> (0UL != (CY_TCPWM_INT_ON_CC &amp; interrupts))</div><div class="line">    {</div><div class="line">        <span class="comment">/* Handle the Compare/Capture event */</span></div><div class="line">    }</div><div class="line"></div><div class="line">    <span class="comment">/* Clear the interrupt */</span></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__common.html#ga0c7a2d667dc983c82327463529f5d283">Cy_TCPWM_ClearInterrupt</a>(TCPWM0, MY_TCPWM_CNT_NUM, interrupts);</div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga567d7ae9e63aed64f0c73e45183a4674"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga567d7ae9e63aed64f0c73e45183a4674">&#9670;&nbsp;</a></span>Cy_TCPWM_SetInterrupt()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_SetInterrupt </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>source</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Triggers an interrupt via a software write. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
    <tr><td class="paramname">source</td><td>The source to set an interrupt. See <a class="el" href="group__group__tcpwm__interrupt__sources.html">Interrupt Sources</a>.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is a need to set a terminal count interrupt by SW for</span></div><div class="line"><span class="comment">     * the first (index = 0) counter of the TCPWM0 block.</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_CNT_NUM   (0UL)</span></div><div class="line"></div><div class="line">    <span class="comment">/* Check if the desired interrupt is enabled prior to triggering */</span></div><div class="line">    <span class="keywordflow">if</span> (0UL != (<a class="code" href="group__group__tcpwm__interrupt__sources.html#gab5db2da5edd94851eebb473325dd6324">CY_TCPWM_INT_ON_TC</a> &amp; <a class="code" href="group__group__tcpwm__functions__common.html#gad1e957bf59ad8dbf62fbcee214825098">Cy_TCPWM_GetInterruptMask</a>(TCPWM0, MY_TCPWM_CNT_NUM)))</div><div class="line">    {</div><div class="line">        <a class="code" href="group__group__tcpwm__functions__common.html#ga567d7ae9e63aed64f0c73e45183a4674">Cy_TCPWM_SetInterrupt</a>(TCPWM0, MY_TCPWM_CNT_NUM, <a class="code" href="group__group__tcpwm__interrupt__sources.html#gab5db2da5edd94851eebb473325dd6324">CY_TCPWM_INT_ON_TC</a>);</div><div class="line">    }</div><div class="line">    <span class="keywordflow">else</span></div><div class="line">    {</div><div class="line">        <span class="comment">/* The terminal count interrupt is not enabled, so there is no sense to trigger it */</span></div><div class="line">    }</div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga47ec0d6214c01f67774fb97b9c3f0878"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga47ec0d6214c01f67774fb97b9c3f0878">&#9670;&nbsp;</a></span>Cy_TCPWM_SetInterruptMask()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_SetInterruptMask </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>mask</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets an interrupt mask. </p>
<p>A 1 means that when the event occurs, it will cause an interrupt; a 0 means no interrupt will be triggered.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
    <tr><td class="paramname">mask</td><td>. See <a class="el" href="group__group__tcpwm__interrupt__sources.html">Interrupt Sources</a></td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is a need to set the Compare/Capture interrupt mask for</span></div><div class="line"><span class="comment">     * the first (index = 0) counter of the TCPWM0 block.</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_CNT_NUM   (0UL)</span></div><div class="line"></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__common.html#ga47ec0d6214c01f67774fb97b9c3f0878">Cy_TCPWM_SetInterruptMask</a>(TCPWM0, MY_TCPWM_CNT_NUM,</div><div class="line">        CY_TCPWM_INT_ON_CC | <a class="code" href="group__group__tcpwm__functions__common.html#gad1e957bf59ad8dbf62fbcee214825098">Cy_TCPWM_GetInterruptMask</a>(TCPWM0, MY_TCPWM_CNT_NUM));</div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="gad1e957bf59ad8dbf62fbcee214825098"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gad1e957bf59ad8dbf62fbcee214825098">&#9670;&nbsp;</a></span>Cy_TCPWM_GetInterruptMask()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_TCPWM_GetInterruptMask </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the interrupt mask. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Interrupt Mask. See <a class="el" href="group__group__tcpwm__interrupt__sources.html">Interrupt Sources</a></dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: there is a need to set the Compare/Capture interrupt mask for</span></div><div class="line"><span class="comment">     * the first (index = 0) counter of the TCPWM0 block.</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_CNT_NUM   (0UL)</span></div><div class="line"></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__common.html#ga47ec0d6214c01f67774fb97b9c3f0878">Cy_TCPWM_SetInterruptMask</a>(TCPWM0, MY_TCPWM_CNT_NUM,</div><div class="line">        CY_TCPWM_INT_ON_CC | <a class="code" href="group__group__tcpwm__functions__common.html#gad1e957bf59ad8dbf62fbcee214825098">Cy_TCPWM_GetInterruptMask</a>(TCPWM0, MY_TCPWM_CNT_NUM));</div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="gabb00d4f53ff5db82aa6f5e5ae0e79f8a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gabb00d4f53ff5db82aa6f5e5ae0e79f8a">&#9670;&nbsp;</a></span>Cy_TCPWM_GetInterruptStatusMasked()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE uint32_t Cy_TCPWM_GetInterruptStatusMasked </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns which masked interrupt triggered the interrupt. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Interrupt Mask. See <a class="el" href="group__group__tcpwm__interrupt__sources.html">Interrupt Sources</a></dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: inside the TCPWM interrupt handler for</span></div><div class="line"><span class="comment">     * the first (index = 0) counter of the TCPWM0 block.</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_CNT_NUM   (0UL)</span></div><div class="line"></div><div class="line">    <span class="comment">/* Get all the enabled pending interrupts */</span></div><div class="line">    uint32_t interrupts = <a class="code" href="group__group__tcpwm__functions__common.html#gabb00d4f53ff5db82aa6f5e5ae0e79f8a">Cy_TCPWM_GetInterruptStatusMasked</a>(TCPWM0, MY_TCPWM_CNT_NUM);</div><div class="line"></div><div class="line">    <span class="keywordflow">if</span> (0UL != (<a class="code" href="group__group__tcpwm__interrupt__sources.html#gab5db2da5edd94851eebb473325dd6324">CY_TCPWM_INT_ON_TC</a> &amp; interrupts))</div><div class="line">    {</div><div class="line">        <span class="comment">/* Handle the Terminal Count event */</span></div><div class="line">    }</div><div class="line"></div><div class="line">    <span class="keywordflow">if</span> (0UL != (CY_TCPWM_INT_ON_CC &amp; interrupts))</div><div class="line">    {</div><div class="line">        <span class="comment">/* Handle the Compare/Capture event */</span></div><div class="line">    }</div><div class="line"></div><div class="line">    <span class="comment">/* Clear the interrupt */</span></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__common.html#ga0c7a2d667dc983c82327463529f5d283">Cy_TCPWM_ClearInterrupt</a>(TCPWM0, MY_TCPWM_CNT_NUM, interrupts);</div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="gaafe86ec440bec9a2c23392f289cc3a8b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaafe86ec440bec9a2c23392f289cc3a8b">&#9670;&nbsp;</a></span>Cy_TCPWM_TriggerStart_Single()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_TriggerStart_Single </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Triggers a software start on the selected TCPWM. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: Use software trigger to start Shift Register operation */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_SHIFTREG_NUM   (0UL)</span></div><div class="line"></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__common.html#gaafe86ec440bec9a2c23392f289cc3a8b">Cy_TCPWM_TriggerStart_Single</a>(TCPWM0, MY_TCPWM_SHIFTREG_NUM);</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga710f6bd4caaeda13df9c2ab91b8d1571"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga710f6bd4caaeda13df9c2ab91b8d1571">&#9670;&nbsp;</a></span>Cy_TCPWM_TriggerReloadOrIndex_Single()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_TriggerReloadOrIndex_Single </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Triggers a software reload event (or index 0 in QuadDec mode) on selected TCPWM. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gad1459b0ddabf388afe151de57f7cf4d4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gad1459b0ddabf388afe151de57f7cf4d4">&#9670;&nbsp;</a></span>Cy_TCPWM_TriggerStopOrKill_Single()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_TriggerStopOrKill_Single </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Triggers a stop in the Timer Counter mode, or a kill in the PWM mode on selected TCPWM. </p>
<dl class="section note"><dt>Note</dt><dd>The kill trigger behavior for PWM is defined by the <a class="el" href="structcy__stc__tcpwm__pwm__config__t.html#add150f9e27b83cc7549db22934cd4d00">cy_stc_tcpwm_pwm_config_t::killMode</a> field. The pins states after a kill trigger are defined by <a class="el" href="structcy__stc__tcpwm__pwm__config__t.html#a9bf7f3c7133ff0c6e1d51c6b52d05997">cy_stc_tcpwm_pwm_config_t::invertPWMOut</a> and <a class="el" href="structcy__stc__tcpwm__pwm__config__t.html#a3eb0cc962444244b8200dafa2e8e856b">cy_stc_tcpwm_pwm_config_t::invertPWMOutN</a> fields.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gadba9d406c3bd2b008aa7bbadcd5f32c2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gadba9d406c3bd2b008aa7bbadcd5f32c2">&#9670;&nbsp;</a></span>Cy_TCPWM_TriggerCaptureOrSwap_Single()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_TriggerCaptureOrSwap_Single </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Triggers a Capture 0 in the Timer Counter mode, and a Swap in the PWM mode on selected TCPWM. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga8a8b31f18ff10c45b7eacfe9d1c25ddd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga8a8b31f18ff10c45b7eacfe9d1c25ddd">&#9670;&nbsp;</a></span>Cy_TCPWM_TriggerCapture0()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_TriggerCapture0 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Triggers a Capture 0 on the selected counter. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>For TCPWM version 3 and above in compare mode, when external direction control is enabled and Capture0 input is disabled, user can use software capture0 trigger. While using this, User has to make sure that the external direction control is set to CY_TCPWM_COUNTER_DIRECTION_RISING </dd></dl>

</div>
</div>
<a id="ga873ce3820b8532c5d7ab6216dbf33c8a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga873ce3820b8532c5d7ab6216dbf33c8a">&#9670;&nbsp;</a></span>Cy_TCPWM_TriggerCapture1()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_TriggerCapture1 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Triggers a Capture 1 in Timer Counter and QuadDec Mode. </p>
<p>In PWM mode this acts as a second kill input.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gaa52ca9fbf1b90376b2291ff899b78e72"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa52ca9fbf1b90376b2291ff899b78e72">&#9670;&nbsp;</a></span>Cy_TCPWM_GetTrigPinLevel()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE bool Cy_TCPWM_GetTrigPinLevel </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> const *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__tcpwm__enums.html#ga17d594ed5788e1fc2de2eae9982fc9dc">cy_en_tcpwm_trigselect_t</a>&#160;</td>
          <td class="paramname"><em>triggerSelect</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the current level of the selected input trigger. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
    <tr><td class="paramname">triggerSelect</td><td>Defines which trigger status is being checked, Start, Reload, Stop/Kill, Count, Capture 0 or Capture 1</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The trigger level</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line"></div><div class="line">    <span class="comment">/* Scenario: there is a need to check current level of pin connected to</span></div><div class="line"><span class="comment">     * start trigger for the first (index = 0) counter of the TCPWM0 block</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_PWM_NUM   (0UL)</span></div><div class="line"></div><div class="line">    <span class="keywordflow">if</span> (<a class="code" href="group__group__tcpwm__functions__common.html#gaa52ca9fbf1b90376b2291ff899b78e72">Cy_TCPWM_GetTrigPinLevel</a>(TCPWM0, MY_TCPWM_PWM_NUM, <a class="code" href="group__group__tcpwm__enums.html#gga17d594ed5788e1fc2de2eae9982fc9dcae75c3855ed4b926fd65e57c9fcaeba68">CY_TCPWM_INPUT_TR_START</a>))</div><div class="line">    {</div><div class="line">        <span class="comment">/* Level on pin that is connected to the Start Trigger input is High */</span></div><div class="line">    }</div><div class="line">    <span class="keywordflow">else</span></div><div class="line">    {</div><div class="line">         <span class="comment">/* Level on pin that is connected to the Start Trigger input is Low */</span></div><div class="line">    }</div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="gad2d48d4af03eafea0c103905249e8254"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gad2d48d4af03eafea0c103905249e8254">&#9670;&nbsp;</a></span>Cy_TCPWM_InputTriggerSetup()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_InputTriggerSetup </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32&#160;</td>
          <td class="paramname"><em>cntNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__tcpwm__enums.html#ga17d594ed5788e1fc2de2eae9982fc9dc">cy_en_tcpwm_trigselect_t</a>&#160;</td>
          <td class="paramname"><em>triggerSelect</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>edgeSelect</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>triggerSignal</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets up a trigger input signal for a specific TCPWM counter. </p>
<p>This API is used to handle software triggering of multiple counters synchronously.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
    <tr><td class="paramname">triggerSelect</td><td>Defines which trigger is being setup, Start, Reload, Stop/Kill, Count, Capture 0 or Capture 1 see cy_en_tcpwm_trigselect_t</td></tr>
    <tr><td class="paramname">edgeSelect</td><td>Sets the trigger edge detection, Rising, Falling, Both, No edge detect. see <a class="el" href="group__group__tcpwm__input__modes.html">Input Modes</a></td></tr>
    <tr><td class="paramname">triggerSignal</td><td>Selects what trigger signal is connected to the selected input trigger.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>Trigger signal for general purpose trigger is calculated as below. CY_TCPWM_INPUT_TRIG(n) = (n + TCPWM_TR_ONE_CNT_NR + 2U) For devices with more than one instance of TCPWM <a class="el" href="group__group__tcpwm__input__selection.html#ga15e94cf62ecc35aa76894c61c3d3aa6c" title="Input is connected to the trigger input n - all purpose trigger, m is the TCPWM instance number...">CY_TCPWM_INPUT_TRIG_WITH_INST(n, m)</a> is used where m is the TCPWM instance number.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line"></div><div class="line">    <span class="comment">/* Scenario: Start multiple counters synchronously</span></div><div class="line"><span class="comment">     */</span></div><div class="line"><span class="preprocessor">    #define GRP0_CNT0_NUM   (0UL)</span></div><div class="line"><span class="preprocessor">    #define GRP0_CNT1_NUM   (1UL)</span></div><div class="line"><span class="preprocessor">    #define GRP0_CNT2_NUM   (2UL)</span></div><div class="line"><span class="preprocessor">    #define TCPWM0_TR_IN0   (0x40000200u) </span><span class="comment">/* tcpwm[0].tr_in[0] */</span><span class="preprocessor"></span></div><div class="line"></div><div class="line"><span class="preprocessor">    #if (CY_IP_MXTCPWM_VERSION &gt;= 2U)</span></div><div class="line">    <span class="comment">/* Set up input trigger start for all 3 counters to CY_TCPWM_INPUT_TRIG(0)</span></div><div class="line"><span class="comment">       Trigger signal for general purpose trigger is calculated as below.</span></div><div class="line"><span class="comment">       CY_TCPWM_INPUT_TRIG(n)  = (n + TCPWM_TR_ONE_CNT_NR + 2U)</span></div><div class="line"><span class="comment">       For devices with more than one instance of TCPWM</span></div><div class="line"><span class="comment">       CY_TCPWM_INPUT_TRIG_WITH_INST(n, m) is used where m is the TCPWM instance number.</span></div><div class="line"><span class="comment">       Cy_TCPWM_InputTriggerSetup(TCPWM1, GRP0_CNT2_NUM, CY_TCPWM_INPUT_TR_START, CY_TCPWM_INPUT_LEVEL, CY_TCPWM_INPUT_TRIG_WITH_INST(0,1));</span></div><div class="line"><span class="comment">     */</span></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__common.html#gad2d48d4af03eafea0c103905249e8254">Cy_TCPWM_InputTriggerSetup</a>(TCPWM0, GRP0_CNT0_NUM, <a class="code" href="group__group__tcpwm__enums.html#gga17d594ed5788e1fc2de2eae9982fc9dcae75c3855ed4b926fd65e57c9fcaeba68">CY_TCPWM_INPUT_TR_START</a>, <a class="code" href="group__group__tcpwm__input__modes.html#ga6f8ffc8c36941d7d44290147032fd33b">CY_TCPWM_INPUT_LEVEL</a>, CY_TCPWM_INPUT_TRIG(0));</div><div class="line">    <a class="code" href="group__group__tcpwm__functions__common.html#gad2d48d4af03eafea0c103905249e8254">Cy_TCPWM_InputTriggerSetup</a>(TCPWM0, GRP0_CNT1_NUM, <a class="code" href="group__group__tcpwm__enums.html#gga17d594ed5788e1fc2de2eae9982fc9dcae75c3855ed4b926fd65e57c9fcaeba68">CY_TCPWM_INPUT_TR_START</a>, <a class="code" href="group__group__tcpwm__input__modes.html#ga6f8ffc8c36941d7d44290147032fd33b">CY_TCPWM_INPUT_LEVEL</a>, CY_TCPWM_INPUT_TRIG(0));</div><div class="line">    <a class="code" href="group__group__tcpwm__functions__common.html#gad2d48d4af03eafea0c103905249e8254">Cy_TCPWM_InputTriggerSetup</a>(TCPWM0, GRP0_CNT2_NUM, <a class="code" href="group__group__tcpwm__enums.html#gga17d594ed5788e1fc2de2eae9982fc9dcae75c3855ed4b926fd65e57c9fcaeba68">CY_TCPWM_INPUT_TR_START</a>, <a class="code" href="group__group__tcpwm__input__modes.html#ga6f8ffc8c36941d7d44290147032fd33b">CY_TCPWM_INPUT_LEVEL</a>, CY_TCPWM_INPUT_TRIG(0));</div><div class="line"></div><div class="line"><span class="preprocessor">    #endif </span><span class="comment">/*(CY_IP_MXTCPWM_VERSION &gt;= 2U) */</span><span class="preprocessor"></span></div><div class="line"></div><div class="line">    <span class="comment">/* Trigger through Software to start all 3 counters synchronously */</span></div><div class="line">    <a class="code" href="group__group__trigmux.html#ga882218319ecd105dede8b382e9a1c4a4">Cy_TrigMux_SwTrigger</a>(TCPWM0_TR_IN0, <a class="code" href="group__group__trigmux__macros.html#ga9347a341f6903dee749841fae0dcb4a5">CY_TRIGGER_TWO_CYCLES</a>);</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga1d580c145e6e0a2bcccb3bc4c5e5b0aa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga1d580c145e6e0a2bcccb3bc4c5e5b0aa">&#9670;&nbsp;</a></span>Cy_TCPWM_OutputTriggerSetup()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_OutputTriggerSetup </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32&#160;</td>
          <td class="paramname"><em>cntNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__tcpwm__enums.html#ga302d5f1c0546c77304bfed7a8abf0cdb">cy_en_tcpwm_output_trigselect_t</a>&#160;</td>
          <td class="paramname"><em>trigger0event</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__tcpwm__enums.html#ga302d5f1c0546c77304bfed7a8abf0cdb">cy_en_tcpwm_output_trigselect_t</a>&#160;</td>
          <td class="paramname"><em>trigger1event</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets up a trigger output signal for a specific TCPWM counter event. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
    <tr><td class="paramname">trigger0event</td><td>Selects internal events for output trigger out0 generation. see <a class="el" href="group__group__tcpwm__enums.html#ga302d5f1c0546c77304bfed7a8abf0cdb">cy_en_tcpwm_output_trigselect_t</a></td></tr>
    <tr><td class="paramname">trigger1event</td><td>Selects internal events for output trigger out1 generation. see <a class="el" href="group__group__tcpwm__enums.html#ga302d5f1c0546c77304bfed7a8abf0cdb">cy_en_tcpwm_output_trigselect_t</a> </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga03bd95ef7188f3da6f51e043e2bbd1ea"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga03bd95ef7188f3da6f51e043e2bbd1ea">&#9670;&nbsp;</a></span>Cy_TCPWM_SetDebugFreeze()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE <a class="el" href="group__group__tcpwm__enums.html#ga236beaba02c8a2a1c4eec981501e7270">cy_en_tcpwm_status_t</a> Cy_TCPWM_SetDebugFreeze </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32&#160;</td>
          <td class="paramname"><em>cntNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>enable</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables/disables the Debug Freeze feature for the specified counter. </p>
<dl class="section note"><dt>Note</dt><dd>This feature will work correctly when the trigger type parameter in <a class="el" href="group__group__trigmux__functions.html#ga3671fac144b75c3b3eddc5ab46ae96f6">Cy_TrigMux_Connect</a> will be set to 'TRIGGER_TYPE_LEVEL'. The example is in the code snippet for this API.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
    <tr><td class="paramname">enable</td><td>true: The Debug Free feature is enabled false: The Debug Freeze feature is disabled</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Error / Status code. See cy_en_tcpwm_status_t.</dd></dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: Enable Debug Freeze capability for the first</span></div><div class="line"><span class="comment">     * (index = 0) counter of the TCPWM0 block. */</span></div><div class="line"></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_CNT_NUM   (0UL)</span></div><div class="line"></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__common.html#ga03bd95ef7188f3da6f51e043e2bbd1ea">Cy_TCPWM_SetDebugFreeze</a> (TCPWM0, MY_TCPWM_CNT_NUM, <span class="keyword">true</span>);</div><div class="line"></div><div class="line">    <span class="comment">/* Now the counter value will be frozen when the tr_dbg_freeze signal is activated.</span></div><div class="line"><span class="comment">     * Usually the tr_dbg_freeze signal is intended to be activated from the cpuss.cti_tr_out[x] signal, for example:</span></div><div class="line"><span class="comment">    */</span></div><div class="line">    <a class="code" href="group__group__trigmux__functions.html#ga3671fac144b75c3b3eddc5ab46ae96f6">Cy_TrigMux_Connect</a>(TRIG_IN_MUX_7_CTI_TR_OUT0, TRIG_OUT_MUX_7_TCPWM_DEBUG_FREEZE_TR_IN, <span class="keyword">false</span>, TRIGGER_TYPE_LEVEL);</div><div class="line">    <span class="comment">/* However it can be activated just with software triggering: */</span></div><div class="line">    <a class="code" href="group__group__trigmux.html#ga882218319ecd105dede8b382e9a1c4a4">Cy_TrigMux_SwTrigger</a>(TRIG_OUT_MUX_7_TCPWM_DEBUG_FREEZE_TR_IN, <a class="code" href="group__group__trigmux__macros.html#gab3a2b0e75a195d5fb7020cecc2caf948">CY_TRIGGER_INFINITE</a>);</div><div class="line"></div><div class="line">    <span class="comment">/* Get the counter value */</span></div><div class="line">    getVal = <a class="code" href="group__group__tcpwm__functions__counter.html#ga216478872f4b0b65f89691ea577286bb">Cy_TCPWM_Counter_GetCounter</a>(TCPWM0,(uint32_t)0U);</div><div class="line"></div><div class="line">    <span class="comment">/* Observe value is not changed from previous read */</span></div><div class="line">    getVal = <a class="code" href="group__group__tcpwm__functions__counter.html#ga216478872f4b0b65f89691ea577286bb">Cy_TCPWM_Counter_GetCounter</a>(TCPWM0,(uint32_t)0U);</div><div class="line"></div><div class="line">    <span class="comment">/* Scenario: Disable a Debug Freeze feature */</span></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__common.html#ga03bd95ef7188f3da6f51e043e2bbd1ea">Cy_TCPWM_SetDebugFreeze</a> (TCPWM0, MY_TCPWM_CNT_NUM, <span class="keyword">false</span>);</div><div class="line"></div><div class="line">    <span class="comment">/* Deactivate trigger */</span></div><div class="line">    <a class="code" href="group__group__trigmux.html#ga882218319ecd105dede8b382e9a1c4a4">Cy_TrigMux_SwTrigger</a>(TRIG_OUT_MUX_7_TCPWM_DEBUG_FREEZE_TR_IN, <a class="code" href="group__group__trigmux__macros.html#ga885d34d6a5be4de43ec78fcdfd1044c2">CY_TRIGGER_DEACTIVATE</a>);</div><div class="line"></div><div class="line">    <span class="comment">/* Get the counter value */</span></div><div class="line">    getVal = <a class="code" href="group__group__tcpwm__functions__counter.html#ga216478872f4b0b65f89691ea577286bb">Cy_TCPWM_Counter_GetCounter</a>(TCPWM0,(uint32_t)0U);</div><div class="line"></div><div class="line">    <span class="comment">/* Observe value is changed from previous read */</span></div><div class="line">    getVal = <a class="code" href="group__group__tcpwm__functions__counter.html#ga216478872f4b0b65f89691ea577286bb">Cy_TCPWM_Counter_GetCounter</a>(TCPWM0,(uint32_t)0U);</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga950b401d5acbd494be8bb5190d77e9a0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga950b401d5acbd494be8bb5190d77e9a0">&#9670;&nbsp;</a></span>Cy_TCPWM_SetDebugSuspend()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_SetDebugSuspend </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32&#160;</td>
          <td class="paramname"><em>cntNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>enable</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables/disables the Debug Suspend feature for the specified counter. </p>
<dl class="section note"><dt>Note</dt><dd>This feature will work correctly when the trigger type parameter in <a class="el" href="group__group__trigmux__functions.html#ga3671fac144b75c3b3eddc5ab46ae96f6">Cy_TrigMux_Connect</a> will be set to 'TRIGGER_TYPE_LEVEL'. The example is in the code snippet for this API.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
    <tr><td class="paramname">enable</td><td>true: The Debug Suspend feature is enabled false: The Debug Suspend feature is disabled</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Function Usage</dt><dd><div class="fragment"><div class="line">    <span class="comment">/* Scenario: Enable Debug Suspend capability for the first</span></div><div class="line"><span class="comment">     * (index = 0) counter of the TCPWM0 block. */</span></div><div class="line"></div><div class="line"><span class="preprocessor">    #define MY_TCPWM_CNT_NUM   (0UL)</span></div><div class="line"></div><div class="line">    <span class="comment">/* The registers are not defined in the Architecture TRM currently*/</span></div><div class="line"><span class="preprocessor">    #define TRC_CTICONTROL                   (*((volatile uint32_t*)(0xE0080000)))</span></div><div class="line"><span class="preprocessor">    #define TRC_CTIINEN(n)                   (*((volatile uint32_t*)(0xE0080020 + 4*n)))</span></div><div class="line"><span class="preprocessor">    #define TRC_CTIOUTEN(n)                  (*((volatile uint32_t*)(0xE00800A0 + 4*n)))</span></div><div class="line"></div><div class="line">    <span class="keywordflow">if</span> ((1 &lt;&lt; SRSS_PWR_CTL_DEBUG_SESSION_Pos) &amp; SRSS_PWR_CTL)</div><div class="line">    {</div><div class="line">        <span class="comment">/* CTI Configuration */</span></div><div class="line">        TRC_CTICONTROL = 0x1;</div><div class="line">        TRC_CTIINEN(8) = 0x1;</div><div class="line">        TRC_CTIOUTEN(7) = 0x1;</div><div class="line"></div><div class="line">        <span class="comment">/* Now the counter value will be frozen when the tr_dbg_freeze signal is activated.</span></div><div class="line"><span class="comment">            * Usually the tr_dbg_freeze signal is intended to be activated from the cpuss.cti_tr_out[x] signal, both CTI_TR_OUT0 or CTI_TR_OUT1 can be selected</span></div><div class="line"><span class="comment">            */</span></div><div class="line">        <a class="code" href="group__group__trigmux__functions.html#ga3671fac144b75c3b3eddc5ab46ae96f6">Cy_TrigMux_Connect</a>(TRIG_IN_MUX_8_CTI_TR_OUT0, TRIG_OUT_MUX_8_TCPWM_DEBUG_FREEZE_TR_IN, <span class="keyword">false</span>, TRIGGER_TYPE_LEVEL);</div><div class="line"></div><div class="line">    }</div><div class="line"></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__common.html#ga950b401d5acbd494be8bb5190d77e9a0">Cy_TCPWM_SetDebugSuspend</a> (TCPWM0, MY_TCPWM_CNT_NUM, <span class="keyword">true</span>);</div><div class="line"></div><div class="line">    <span class="comment">/* However it can be activated just with software triggering: */</span></div><div class="line">    <a class="code" href="group__group__trigmux.html#ga882218319ecd105dede8b382e9a1c4a4">Cy_TrigMux_SwTrigger</a>(TRIG_OUT_MUX_8_TCPWM_DEBUG_FREEZE_TR_IN, <a class="code" href="group__group__trigmux__macros.html#gab3a2b0e75a195d5fb7020cecc2caf948">CY_TRIGGER_INFINITE</a>);</div><div class="line"></div><div class="line">    <span class="comment">/* Get the counter value */</span></div><div class="line">    getVal = <a class="code" href="group__group__tcpwm__functions__counter.html#ga216478872f4b0b65f89691ea577286bb">Cy_TCPWM_Counter_GetCounter</a>(TCPWM0,(uint32_t)0U);</div><div class="line"></div><div class="line">    <span class="comment">/* Observe value is not changed from previous read */</span></div><div class="line">    getVal = <a class="code" href="group__group__tcpwm__functions__counter.html#ga216478872f4b0b65f89691ea577286bb">Cy_TCPWM_Counter_GetCounter</a>(TCPWM0,(uint32_t)0U);</div><div class="line"></div><div class="line">    <span class="comment">/* Scenario: Disable a Debug Suspend feature */</span></div><div class="line">    <a class="code" href="group__group__tcpwm__functions__common.html#ga950b401d5acbd494be8bb5190d77e9a0">Cy_TCPWM_SetDebugSuspend</a> (TCPWM0, MY_TCPWM_CNT_NUM, <span class="keyword">false</span>);</div><div class="line"></div><div class="line">    <span class="comment">/* Deactivate trigger */</span></div><div class="line">    <a class="code" href="group__group__trigmux.html#ga882218319ecd105dede8b382e9a1c4a4">Cy_TrigMux_SwTrigger</a>(TRIG_OUT_MUX_8_TCPWM_DEBUG_FREEZE_TR_IN, <a class="code" href="group__group__trigmux__macros.html#ga885d34d6a5be4de43ec78fcdfd1044c2">CY_TRIGGER_DEACTIVATE</a>);</div><div class="line"></div><div class="line">    <span class="comment">/* Get the counter value */</span></div><div class="line">    getVal = <a class="code" href="group__group__tcpwm__functions__counter.html#ga216478872f4b0b65f89691ea577286bb">Cy_TCPWM_Counter_GetCounter</a>(TCPWM0,(uint32_t)0U);</div><div class="line"></div><div class="line">    <span class="comment">/* Observe value is changed from previous read */</span></div><div class="line">    getVal = <a class="code" href="group__group__tcpwm__functions__counter.html#ga216478872f4b0b65f89691ea577286bb">Cy_TCPWM_Counter_GetCounter</a>(TCPWM0,(uint32_t)0U);</div><div class="line"></div></div><!-- fragment --></dd></dl>

</div>
</div>
<a id="ga9cce3f9a4b4f0d381565599279a7dd18"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga9cce3f9a4b4f0d381565599279a7dd18">&#9670;&nbsp;</a></span>Cy_TCPWM_Block_EnableSwap()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_Block_EnableSwap </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>cntNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>enable</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables/disables swapping mechanism between CC0 and buffered CC0, CC1 and buffered CC1, PERIOD and buffered PERIOD, DT and buffered DT. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
    <tr><td class="paramname">enable</td><td>true: Swapping mechanism is enabled false: Swapping mechanism is disabled</td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>This feature is coupled with the reload feature. when both reload and swap are enabled then CC0/CC1/PERIOD/DT values are swapped with CC_BUFF/CC1_BUFF/PERIOD_BUFF/DT_BUFF values respectively When only reload is enabled then CC_BUFF/CC1_BUFF/PERIOD_BUFF/DT_BUFF values are copied to CC0/CC1/PERIOD/DT respectively. There is no action when reload is disabled. Reload is enabled/disabled with the API's Cy_TCPWM_Block_EnableCompare0Swap, Cy_TCPWM_Block_EnableCompare1Swap, Cy_TCPWM_PWM_EnablePeriodSwap</dd>
<dd>
Applicable for devices with TCPWM version 3 and above and for MXTCPWM version 1 and above. </dd></dl>

</div>
</div>
<a id="gaf6fb96fe51a6e4b1edeac970ba113166"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf6fb96fe51a6e4b1edeac970ba113166">&#9670;&nbsp;</a></span>Cy_TCPWM_InputTriggerSetupWithGF()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">__STATIC_INLINE void Cy_TCPWM_InputTriggerSetupWithGF </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_t_c_p_w_m___type.html">TCPWM_Type</a> *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32&#160;</td>
          <td class="paramname"><em>cntNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__tcpwm__enums.html#ga17d594ed5788e1fc2de2eae9982fc9dc">cy_en_tcpwm_trigselect_t</a>&#160;</td>
          <td class="paramname"><em>triggerSelect</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>edgeSelect</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>triggerSignal</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__tcpwm__enums.html#gadbc4d3602412fbbaf92175ef56258029">cy_en_gf_depth_value_t</a>&#160;</td>
          <td class="paramname"><em>dsvalue</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets up a trigger input signal for a specific TCPWM counter and Glitch filter configuration for that trigger. </p>
<p>This API is used to handle software triggering of multiple counters synchronously.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>The pointer to a TCPWM instance.</td></tr>
    <tr><td class="paramname">cntNum</td><td>The Counter instance number in the selected TCPWM.</td></tr>
    <tr><td class="paramname">triggerSelect</td><td>Defines which trigger is being setup, Start, Reload, Stop/Kill, Count, Capture 0 or Capture 1 see cy_en_tcpwm_trigselect_t</td></tr>
    <tr><td class="paramname">edgeSelect</td><td>Sets the trigger edge detection, Rising, Falling, Both, No edge detect. see <a class="el" href="group__group__tcpwm__input__modes.html">Input Modes</a></td></tr>
    <tr><td class="paramname">triggerSignal</td><td>Selects what trigger signal is connected to the selected input trigger.</td></tr>
    <tr><td class="paramname">dsvalue</td><td>Glitch filter depth. <a class="el" href="group__group__tcpwm__enums.html#gadbc4d3602412fbbaf92175ef56258029">cy_en_gf_depth_value_t</a></td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>GF depth set for one to one triggers will be applied to specific trigger and GF depth set for general purpose trigger will be applicable for all general purpose triggers. </dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part
<div id="nav-path" class="navpath">
    <ul>
        <li class="footer">
            Generated for <b>MTB CAT1 Peripheral driver library</b> by <b>Cypress Semiconductor Corporation</b>.
            All rights reserved.
        </li>
    </ul>
</div>
-->
</body>
</html>
